package com.gxuwz.zhangjiahui.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxuwz.zhangjiahui.entity.Budget;
import com.gxuwz.zhangjiahui.entity.Funds;
import com.gxuwz.zhangjiahui.mapper.BudgetMapper;
import com.gxuwz.zhangjiahui.mapper.FundsMapper;
import com.gxuwz.zhangjiahui.service.IBudgetService;
import com.gxuwz.zhangjiahui.service.IFundsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhangjiahui
 * @since 2021-06-20
 */
@Service
public class FundsServiceImpl extends ServiceImpl<FundsMapper, Funds> implements IFundsService {

    @Autowired
    private FundsMapper fundsMapper;

    @Override
    public Funds findFundsById(Funds funds) {
        return fundsMapper.findFundsById(funds);
    }

    @Override
    public List<Funds> findFundsAll() {
        return fundsMapper.findFundsAll();
    }

    @Override
    public Funds findFundsByNow(String stuNo) {
        return fundsMapper.findFundsByNow(stuNo);
    }

    @Override
    public IPage<Funds> selectFundsPage(Page<Funds> page, Wrapper<Funds> wrapper) {
        return fundsMapper.selectFundsPage(page, wrapper);
    }

    @Override
    public void addFunds(Funds funds) {
        fundsMapper.addFunds(funds);
    }

    @Override
    public void updateFundsById(Funds funds) {
        fundsMapper.updateFundsById(funds);
    }

    @Override
    public void deleteFundsById(Funds funds) {
        fundsMapper.deleteFundsById(funds);
    }
}
